package com.controller.zk;

import com.service.zk.DeptService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Controller
public class DeptController {

    @Resource
    private DeptService service;

    @RequestMapping("/page/getdepts")
    @ResponseBody
    public List<Map<String,Object>> get(){
        return service.getDepts();
    }

}
